$def with(form, spiders, pager)
$:render.admin.header(scripts=['scripts/libs/jquery.tools.min.js'], css=['admin/css/ui.css'])

<script type="text/javascript">
    $$(function () {
            $$('form').validator({'message':false});
    });
</script>
<div class="itemtitle">
    <h3>蜘蛛</h3>
</div>

<table class="tb tb2">
    <tr>
        <td class="noborder vtop" width="300">
            <form method="post">
            <table class="tb tb2">
                <tr><th><strong>$:form.submit.attrs['html']</strong></th></tr>
                <tr><td class="td27">名称</td></tr>
                <tr>
                    <td class="vtop rowform">$:form.name.render()</td>
                </tr>
                <tr><td class="td27">商家</td></tr>
                <tr>
                    <td class="vtop rowform">$:form.partner_id.render()</td>
                </tr>
                <tr>
                    <td>$:form.submit.render()</td>
                </tr>

            </table>
            </form>
        </td>
        <td class="vtop">
            <table class="tb tb2">
                <tr>
                    <td class="partition" colspan="5">已添加的蜘蛛</td>
                </tr>
                <tr class="header">
                    <td width="20">&nbsp;</td>
                    <td>名称</td>
                    <td width="100" align="center">操作</td>
                </tr>
                $if spiders:
                    $for spider in spiders:
                        <tr>
                            <td>&nbsp;</td>
                            <td><a href="/admin/spider/edit/$spider.id">$spider.name</a></td>
                            <td>&nbsp;</td>
                        </tr>
                $else:
                    <tr>
                        <td colspan="3" class="empty">暂无数据</td>
                    </tr>
                <tr>
                    <td colspan="3" align="right"><div class="pages">$:pager.render()</div></td>
                </tr>
            </table>
        </td>
    </tr>
</table>

$:render.admin.footer()
